import 'package:hive/hive.dart';

part 'emoji_model.g.dart';

@HiveType(typeId: 11)
class EmojiModel extends HiveObject {
  @HiveField(0)
  String id;

  @HiveField(1)
  String path;

  @HiveField(2)
  String activityId;

  @HiveField(3)
  String name;

  @HiveField(4)
  bool isUnlocked;

  EmojiModel({
    required this.id,
    required this.path,
    required this.activityId,
    required this.name,
    this.isUnlocked = false,
  });

  // 解锁表情
  void unlock() {
    isUnlocked = true;
  }
}
